import request from '@/utils/request'

/***************桌牌申请***************/

// 创建桌牌申请
export function createDeskApply(data) {
    return request({
        url: '/beer/desk-apply/create',
        method: 'POST',
        data: data
    })
}

export function getDeskApplyPage(data) {
    return request({
        url: '/beer/desk-apply/page',
        method: 'GET',
        data: data
    })
}

export function deleteDeskApply(id) {
    return request({
        url: '/beer/desk-apply/delete?id=' + id,
        method: 'DELETE'
    })
}

/***************桌牌管理***************/

// 获取我的桌牌
export function getMyDeskList() {
    return request({
        url: '/beer/system-desk/get-my-desk',
        method: 'GET'
    })
}

// 桌牌收货
export function delivery(data) {
    return request({
        url: '/beer/desk-apply/delivery',
        method: 'POST',
		params:data
    })
}